package com.yy.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author young
 * @date 2022/12/18 19:41
 * @description:
 */
@RestController
@Slf4j
@RequestMapping("consul")
public class ConsulController {
    
    @GetMapping("/test")
    public String method(){
    return "consul服务测试注册的时间是"+ LocalDateTime.now();
    }
}
